package com.wechat.api.web.model;

import java.util.Date;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.spring.security.core.validators.Insert;
@JsonIgnoreProperties(value={
		"changedtime","initialoperatorid","initialoperatorname","operatorid",
		"operatorname","entityavailablestate","token"},allowSetters=true)
public class StoryComment {
    @NotNull(message = "故事id不可为空",groups = {Insert.class})
    private String childrenStoryid;
    
	private String comment;
	
	private String commentfileid;

    @NotNull(message = "评论类型不可为空",groups = {Insert.class})
    private Integer commenttype;

    private String id;

    private Integer praisecount=0;

    private String token;
    
	@NotNull(message = "用户头像不可为空",groups = {Insert.class})
    private String userheadimgurl;

    private String userid;
    
    private String username;
    
	public Date getCreatedtime() {
		return createdtime;
	}

	public void setCreatedtime(Date createdtime) {
		this.createdtime = createdtime;
	}

	private Date createdtime;
    
    public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	private String fileUrl;

	public String getChildrenStoryid() {
        return childrenStoryid;
    }

	public String getComment() {
        return comment;
    }

    public String getCommentfileid() {
        return commentfileid;
    }

    public Integer getCommenttype() {
        return commenttype;
    }

    public String getId() {
        return id;
    }

    public Integer getPraisecount() {
        return praisecount;
    }

    public String getToken() {
		return token;
	}

    public String getUserheadimgurl() {
        return userheadimgurl;
    }

    public String getUserid() {
        return userid;
    }

    public String getUsername() {
        return username;
    }

    public void setChildrenStoryid(String childrenStoryid) {
        this.childrenStoryid = childrenStoryid == null ? null : childrenStoryid.trim();
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }

    public void setCommentfileid(String commentfileid) {
        this.commentfileid = commentfileid == null ? null : commentfileid.trim();
    }

    public void setCommenttype(Integer commenttype) {
        this.commenttype = commenttype;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public void setPraisecount(Integer praisecount) {
        this.praisecount = praisecount;
    }

    public void setToken(String token) {
		this.token = token;
	}

    public void setUserheadimgurl(String userheadimgurl) {
        this.userheadimgurl = userheadimgurl == null ? null : userheadimgurl.trim();
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }
}